#ifndef _PARTHUS_HW_SILWAVE_
#define _PARTHUS_HW_SILWAVE_

/*************************************************************************
*
*     Module           : hw_SilWave.h
*     Full Module Name : 
*     Model Name       : 
*     Project          : 
*     Designer(s)      : Denis Gleeson dgleeson@parthus.com
*     Current Version  : 0.1
*     Creation date    : 24/8/00
*     Compiler         : ARMCC Version 2.5 
*
*     Description      : 
*
*         Temporary revision number Dublin SW    0.6 Beta
**************************************************************************
*
*            Copyright (c) 2000-2004 Ceva Inc.
*
* This code is confidential and proprietary product of Parthus.
* Any unauthorized use, reproduction or transfer of this 
* code is strictly prohibited.
*
************************************************************************/

#define mBIT(X) (((u_int32)1) << (X))

/* Delays for SiWave radio. */
#ifdef WASABI

   #define mHWradio_RX_DELAY 10
   #define mHWradio_TX_DELAY 4
   #define GIO_0_HIGH_TIME 0x04DD
   #define GIO_6_HIGH_TIME 0x0134

#else
#if(PRH_BS_CFG_TABASCO_VERSION >= PRH_BS_HW_TABASCO_VERSION_T1_0_0)
   #define mHWradio_RX_DELAY 10
   #define mHWradio_TX_DELAY 5
#else
   #define mHWradio_RX_DELAY 10
   #define mHWradio_TX_DELAY 5
#endif

/*GIO timings are effected by the Tx Rx delay settings.*/ 
   #define GIO_0_HIGH_TIME 0x04DD        /*2 bits back for extra delay setting.*/
   #define GIO_6_HIGH_TIME 0x0134

#endif

/* Read or Write of SPI on SiWave radio. */
#define READ_SPI    0x00
#define WRITE_SPI    0x80u

/* Number of Bytes to write. */
#define ONE_BYTE    0x01
#define TWO_BYTE    0x02

/*Used for Fixed frequency operation in test code.*/
#define HWhab_FIXED_FREQ (u_int16)((0x20 << 8) | 0x2D)  /* Write 2D to register 20 to set Hop channel. */

#define HWhab_RECEIVE_MODE  (u_int16)((0x10 << 8) | (0x82))
#define HWhab_IDLE_MODE     (u_int16)((0x10 << 8) | (0x80))
#define HWhab_TRANSMIT_MODE (u_int16)((0x10 << 8) | (0x84))

#endif /* ifndef _PARTHUS_HW_SILWAVE_ */
